/**
 * 业务多维度top分析
 */
import request from '@/utils/request';

// 柱状图查询 访问量数据
export function getVisitCountTop(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/top/getVisitCountTop',
		method: 'post',
		data: query,
	});
}
// 柱状图查询 失败率数据
export function getFailRateTop(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/top/getFailRateTop',
		method: 'post',
		data: query,
	});
}
// 柱状图查询 告警量数据
export function getAlarmVisitCountTop(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/top/getAlarmVisitCountTop',
		method: 'post',
		data: query,
	});
}

// 柱状图查询 平均响应时间
export function getAvgResponseTimeTop(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/top/getAvgResponseTimeTop',
		method: 'post',
		data: query,
	});
}
